<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v-show="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">

<a v-bind:href="url">点击一下</a>
    <input v-model="url">
    <input type="button" value="按钮" v-on:click="show()">
    <hr>
    <div v_if="count==3">div1</div>
    <div v-else-if="count==4">div2</div>
    <div v-else> div3</div>
    <input v-model="count">
    <div v-show="count==3">div show</div>
<script src="js/vue.js"></script>
<script>
  //1.创建vue核心对象
  new Vue({
    el:"#app",
    data(){
      return{
        username:"",
          url:"https://www.baidu.com/",
          show(){
            alert("我被点了....")
          },
          count:3
      }
    }


  })
</script>

</body>
</html>